home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / source / xdme_1.84_src.lha / XDME / include / all.h next >
Encoding:
C/C++ Source or Header  |  1994-12-22  |  3.3 KB  |  134 lines

  1. /******************************************************************************
  2.  
  3.     MODUL
  4.     all.h
  5.  
  6.     DESCRIPTION
  7.     Precompileable headerfile.
  8.  
  9. ******************************************************************************/
  10.  
  11. #ifndef ALL_H
  12. #define ALL_H
  13.  
  14. /**************************************
  15.         Includes
  16. **************************************/
  17. #include <stdio.h>
  18. #include <stdlib.h>
  19. #include <lists.h>
  20. #include <strings.h>
  21. #include <ctype.h>
  22. #include <stdarg.h>
  23. #include <exec/lists.h>
  24. #include <exec/nodes.h>
  25. #include <exec/types.h>
  26. #include <exec/memory.h>
  27. #include <exec/ports.h>
  28. #include <devices/inputevent.h>
  29. #include <libraries/dos.h>
  30. #include <libraries/dosextens.h>
  31. #include <graphics/gfxbase.h>
  32. #include <graphics/gfxmacros.h>
  33. #include <graphics/rastport.h>
  34. #include <intuition/intuition.h>
  35. #include <intuition/intuitionbase.h>
  36. #include <clib/exec_protos.h>
  37. #include <clib/dos_protos.h>
  38. #include <clib/graphics_protos.h>
  39. #include <clib/intuition_protos.h>
  40. #include <clib/diskfont_protos.h>
  41. #include <clib/console_protos.h>
  42. #include <clib/alib_protos.h>           /*HD added */
  43. #include <clib/icon_protos.h>
  44. #include <workbench/startup.h>
  45. #include <workbench/workbench.h>
  46. #include <libraries/asl.h>
  47. #include <clib/asl_protos.h>
  48. #include <clib/reqtools_protos.h>
  49. #include <libraries/reqtools.h>
  50. #include <pragmas/exec_pragmas.h>
  51. #include <pragmas/dos_pragmas.h>
  52. #include <pragmas/graphics_pragmas.h>
  53. #include <pragmas/intuition_pragmas.h>
  54. #include <pragmas/console_pragmas.h>
  55. #include <pragmas/icon_pragmas.h>
  56.  
  57. /* Memory-Debugging. */
  58. /*#include "debug_mem.h" */
  59.  
  60. #include "global.h"
  61.  
  62.  
  63. /**************************************
  64.         Globale Variable
  65. **************************************/
  66. extern struct DosLibrary * DOSBase;
  67.  
  68.  
  69. /**************************************
  70.     Defines und Strukturen
  71. **************************************/
  72. #ifndef NULL
  73. #define NULL 0
  74. #endif
  75. #ifdef E
  76. #undef E
  77. #endif
  78. #ifndef offsetof
  79. #define offsetof(sname,fname)  ((long)((sname *)0)->fname)
  80. #endif
  81.  
  82. /*
  83.  *  note: if you want Local routines to silently be global, simply
  84.  *  '#define Local' to nothing.
  85.  */
  86.  
  87. #define Prototype extern
  88. #define Local      static
  89.  
  90. #ifndef _DCC
  91. #define __stkargs
  92. #endif
  93.  
  94. #define MAXLINELEN    256        /* Max. length of a line */
  95. #define MAXROWS     256        /* Max. number of rows a XDME-window can have */
  96. #define PINGDEPTH    10        /* Max. number of PING/PONGs */
  97. #define MAX_FONT_SIZE    64        /* Font may be at most this pixel high */
  98.  
  99. #define MAXTOGGLE   256
  100. #define QMOVE        (0x6B)
  101.  
  102. #define COLT(n)  (XTbase + ColumnPos[n])
  103. #define ROWT(n)  (YTbase + RowPos[n])
  104. #define COL(n)   (Xbase  + ColumnPos[n])
  105. #define ROW(n)   (Ybase  + RowPos[n])
  106.  
  107. #define nomemory()  { SETF_MEMORYFAIL(Ep,1); SETF_ABORTCOMMAND(Ep,1); }
  108.  
  109. struct __XDMEArgs
  110. {
  111.     char ** files;        /* filenames */
  112.     char  * startupfile;    /* ".edrc" */
  113.     ULONG   newxdme;        /* FALSE */
  114.     ULONG   iconify;        /* FALSE */
  115.     ULONG   autoload;        /* FALSE */
  116.     char  * publicscreenname;    /* NULL */
  117.     char  * projectfilename;    /* "XDME_Project_File" */
  118.  
  119.     struct RDArgs * ra;     /* internal */
  120. };
  121.  
  122.  
  123. /**************************************
  124.            Prototypes
  125. **************************************/
  126.  
  127.  
  128. #endif /* ALL_H */
  129.  
  130. /******************************************************************************
  131. *****  ENDE all.h
  132. ******************************************************************************/
  133.  
  134.